package com.easy.common.utils;

/**
 * 常量
 *
 * @author RuoYu
 * @date 2022/11/22
 */
public class RedisConstants {


    /*token 常量*/
    //-----------------------
    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login:token:";

    /**
     * 过期时间
     */
    public static final Long LOGIN_USER_TTL = 30L;

    /**
     * 剩余时间
     */
    public static final Long LOGIN_SURPLUS_TTL = 10L;
    //-----------------------


    /*收藏 常量*/
    public static final String FAVORITE_KEY = "favorite:";

    /*房屋缩略信息 常量*/
    public static final String HOUSE_CONTRACTION_KEY = "house:contraction_info:";

    /*浏览记录信息 常量*/
    public static final String HISTORY_KEY = "history:info:";
}
